﻿@model ClassLibrary1.Clothes

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Clothes</legend>

        @Html.HiddenFor(model => model.ClothesCode)

        <div class="editor-label">
            @Html.LabelFor(model => model.ProductCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ProductCode)
            @Html.ValidationMessageFor(model => model.ProductCode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Materail)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Materail)
            @Html.ValidationMessageFor(model => model.Materail)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Color)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Color)
            @Html.ValidationMessageFor(model => model.Color)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Size)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Size)
            @Html.ValidationMessageFor(model => model.Size)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Sex)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Sex)
            @Html.ValidationMessageFor(model => model.Sex)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Tech)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Tech)
            @Html.ValidationMessageFor(model => model.Tech)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Style)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Style)
            @Html.ValidationMessageFor(model => model.Style)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Spec)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Spec)
            @Html.ValidationMessageFor(model => model.Spec)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ForOrder)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ForOrder)
            @Html.ValidationMessageFor(model => model.ForOrder)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Storage)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Storage)
            @Html.ValidationMessageFor(model => model.Storage)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.XPrice)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.XPrice)
            @Html.ValidationMessageFor(model => model.XPrice)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BarCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BarCode)
            @Html.ValidationMessageFor(model => model.BarCode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PurchaseNum)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PurchaseNum)
            @Html.ValidationMessageFor(model => model.PurchaseNum)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PurchaseTime)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PurchaseTime)
            @Html.ValidationMessageFor(model => model.PurchaseTime)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.StatusID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.StatusID)
            @Html.ValidationMessageFor(model => model.StatusID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsOff)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsOff)
            @Html.ValidationMessageFor(model => model.IsOff)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsShow)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsShow)
            @Html.ValidationMessageFor(model => model.IsShow)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.OnlineTime)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.OnlineTime)
            @Html.ValidationMessageFor(model => model.OnlineTime)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.sprice)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.sprice)
            @Html.ValidationMessageFor(model => model.sprice)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ClothesName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ClothesName)
            @Html.ValidationMessageFor(model => model.ClothesName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CategoryCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CategoryCode)
            @Html.ValidationMessageFor(model => model.CategoryCode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SinglePackageWeight)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SinglePackageWeight)
            @Html.ValidationMessageFor(model => model.SinglePackageWeight)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SinglePackageLength)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SinglePackageLength)
            @Html.ValidationMessageFor(model => model.SinglePackageLength)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SinglePackageWidth)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SinglePackageWidth)
            @Html.ValidationMessageFor(model => model.SinglePackageWidth)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SinglePackageHeight)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SinglePackageHeight)
            @Html.ValidationMessageFor(model => model.SinglePackageHeight)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EncasementWeight)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EncasementWeight)
            @Html.ValidationMessageFor(model => model.EncasementWeight)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EncasementAmount)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EncasementAmount)
            @Html.ValidationMessageFor(model => model.EncasementAmount)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EncasementLength)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EncasementLength)
            @Html.ValidationMessageFor(model => model.EncasementLength)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EncasementWidth)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EncasementWidth)
            @Html.ValidationMessageFor(model => model.EncasementWidth)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EncasementHeight)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EncasementHeight)
            @Html.ValidationMessageFor(model => model.EncasementHeight)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TemperatureBottom)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TemperatureBottom)
            @Html.ValidationMessageFor(model => model.TemperatureBottom)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TemperatureTop)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TemperatureTop)
            @Html.ValidationMessageFor(model => model.TemperatureTop)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.HumidityBottom)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.HumidityBottom)
            @Html.ValidationMessageFor(model => model.HumidityBottom)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.HumidityTop)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.HumidityTop)
            @Html.ValidationMessageFor(model => model.HumidityTop)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PackageComments)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PackageComments)
            @Html.ValidationMessageFor(model => model.PackageComments)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.redundancy1)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.redundancy1)
            @Html.ValidationMessageFor(model => model.redundancy1)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.redundancy2)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.redundancy2)
            @Html.ValidationMessageFor(model => model.redundancy2)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.redundancy3)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.redundancy3)
            @Html.ValidationMessageFor(model => model.redundancy3)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.redundancy4)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.redundancy4)
            @Html.ValidationMessageFor(model => model.redundancy4)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.redundancy5)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.redundancy5)
            @Html.ValidationMessageFor(model => model.redundancy5)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.redundancy6)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.redundancy6)
            @Html.ValidationMessageFor(model => model.redundancy6)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Recorder)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Recorder)
            @Html.ValidationMessageFor(model => model.Recorder)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RecordTime)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RecordTime)
            @Html.ValidationMessageFor(model => model.RecordTime)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.productserialcode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.productserialcode)
            @Html.ValidationMessageFor(model => model.productserialcode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LatestIsOnTime)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LatestIsOnTime)
            @Html.ValidationMessageFor(model => model.LatestIsOnTime)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LatestIsOffTime)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LatestIsOffTime)
            @Html.ValidationMessageFor(model => model.LatestIsOffTime)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.WarehouseType)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.WarehouseType)
            @Html.ValidationMessageFor(model => model.WarehouseType)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

